package com.thememaker.lockstyle.bean.command;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by binghui.hang on 2018/2/23.
 * Spacetime：两次震动间隔时间
 * Duration：震动持续时间
 * Loop:是否循环
 * <Trigger>
 * <VibratorCommand spacetime="50" duration="50" loop="false"/>
 * </Trigger>
 */
@XmlRootElement(name = "VibratorCommand")
public class VibratorCommand extends BaseCommand{
    private String spacetime;
    private String duration;
    private String loop;

    @XmlAttribute(name = "spacetime")
    public String getSpacetime() {
        return spacetime;
    }

    @XmlAttribute(name = "duration")
    public String getDuration() {
        return duration;
    }

    @XmlAttribute(name = "loop")
    public String getLoop() {
        return loop;
    }

    public void setSpacetime(String spacetime) {
        this.spacetime = spacetime;
    }

    public void setDuration(String duration) {
        this.duration = duration;
    }

    public void setLoop(String loop) {
        this.loop = loop;
    }
}
